package com.kdtech.analyse.tool;

public class SubstrLogic {

	private SubstrType type;
	
	private String startStr = null;
	
	private String endStr = null;
	
	private String subStr= null;
	
	
	public SubstrLogic(SubstrType type,String subStr){
		this.type=type;
		this.subStr=subStr;
	}
	
	public SubstrLogic(String startStr,String endStr){
		this.type=SubstrType.between;
		this.startStr=startStr;
		this.endStr=endStr;
	}

	public SubstrType getType() {
		return type;
	}

	public void setType(SubstrType type) {
		this.type = type;
	}

	public String getStartStr() {
		return startStr;
	}

	public void setStartStr(String startStr) {
		this.startStr = startStr;
	}

	public String getEndStr() {
		return endStr;
	}

	public void setEndStr(String endStr) {
		this.endStr = endStr;
	}

	public String getSubStr() {
		return subStr;
	}

	public void setSubStr(String subStr) {
		this.subStr = subStr;
	}
	
}


